Query-Subquery Nets

نویسندگان

  • Linh Anh Nguyen
  • Son Thanh Cao
چکیده

We formulate query-subquery nets and use them to create the first framework for developing algorithms for evaluating queries to Horn knowledge bases with the properties that: the approach is goal-directed; each subquery is processed only once and each supplement tuple, if desired, is transferred only once; operations are done set-at-a-time; and any control strategy can be used. Our intention is to increase efficiency of query processing by eliminating redundant computation, increasing flexibility and reducing the number of accesses to the secondary storage. The framework forms a generic evaluation method called QSQN. To deal with function symbols, we use a term-depth bound for atoms and substitutions occurring in the computation and propose to use iterative deepening search which iteratively increases the term-depth bound. We prove soundness and completeness of our generic evaluation method and show that, when the term-depth bound is fixed, the method has PTIME data complexity. We also present how tail recursion elimination can be incorporated into our framework and propose two exemplary control strategies, one is to reduce the number of accesses to the secondary storage, while the other is depth-first search.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

METHODS FOR EVALUATING QUERIES TO HORN KNOWLEDGE BASES IN FIRST-ORDER LOGIC PhD dissertation

Horn knowledge bases are extensions of Datalog deductive databases without the rangerestrictedness and function-free conditions. A Horn knowledge base consists of a positive logic program for defining intensional predicates and an instance of extensional predicates. This dissertation concentrates on developing efficient methods for evaluating queries to Horn knowledge bases. In addition, a meth...

متن کامل

Design of Optimization in Object–Oriented Queries

Query optimization is the process of finding the best or rather a reasonably efficient execution plan, thus by minimizing the time of query evaluation & the cost of evaluation to the level accepted by user. When a query jointly addresses very large and small collections, the iteration caused by query operator is driven by large collection and in each cycle a subquery which depends on an element...

متن کامل

Estimating influence of subquery granularity on evaluating a query to remote XML stores

To evaluate a query it is necessary to split it to subqueries. It can be done in several different ways resulted in various granularity. The problem about estimating influence of subquery granularity on evaluating a query to remote XML store is posed in this work. Granularity reduction algorithm is suggested. Minimizing of network node interconnections is the goal of the algorithm. Work is on i...

متن کامل

Textual and Visual for Content-based Image Re- 5.2 Data Preparation 5.3 Query Processing 5.3.2 Subquery Processing 4.1 Webssql Syntax Query := Select Targetattr from Tablelist Where Conditions] With-size Size]

of quadruplets (Webpages.url, Webpages..le id, Images .image id, Images.description) will be obtained. For each quadruplet, a triplet (Webpages.url, Web-pages..le id, Images.image id) are extracted and the set of triplets is used by the next step for assembling the nal result. The fourth component of each quadruplet (i.e., Images.description) will be extracted and be used by subquery q3. Subque...

متن کامل

Optimization of Object-Oriented Queries through Rewriting Compound Weakly Dependent Subqueries

A new static optimization method for object-oriented queries is presented. We deal with a special class of subqueries of a given query called “compound weakly dependent subqueries”. The dependency is considered in the context of SBQL non-algebraic query operators like selection, projection, join, etc. A subquery is weakly dependent from its nearest non-algebraic operator if it depends only on e...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012